import 'package:flutter/material.dart';
import 'example/imagePage.dart';
import 'example/wordpairPage.dart';
import 'homePage.dart';
import 'news/NewsPage.dart';
import 'news/tab_navi_page.dart';

void main() => runApp(RunApp());

class RunApp extends StatelessWidget {
  @override
  Widget build(context) {
    return new MaterialApp(
      title: "我的第一个flutter app",
      theme: ThemeData(
        primarySwatch: Colors.blue,
        // primaryColor: Colors.white,
      ),
      home: MyHomePage(title: "首页"),
      routes: <String, WidgetBuilder>{
        '/imagePage': (BuildContext context) => ImagePage(title: 'image',),
        '/wordpairPage': (BuildContext context) => WordpairPage(title: 'word pair',),
        '/NewsPage': (BuildContext context) => NewsPage(title: '新闻',),
        '/TabNaviPage': (BuildContext context) => TabNaviPage(),
      },
    );
  }
}